package org.ISCS.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.ISCS.entity.Dockerfile;
import org.ISCS.service.DockerfileService;
import org.ISCS.mapper.DockerfileMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author mj
* @description 针对表【dockerfile】的数据库操作Service实现
* @createDate 2023-05-24 14:56:34
*/
@Service
public class DockerfileServiceImpl extends ServiceImpl<DockerfileMapper, Dockerfile>
    implements DockerfileService{

    @Autowired
    DockerfileMapper dockerfileMapper;
    @Override
    public int insertDockerFile(Dockerfile dockerfile) {
        int id =  dockerfileMapper.insert(dockerfile);
        return id;
    }

    @Override
    public int updateDockerFileById(Dockerfile dockerfile) {
        int id = dockerfileMapper.updateById(dockerfile);
        return id;
    }
}




